<%= flash_and_form_errors %>

<div id="search">
	<% form_for(@new_rule) do |f| %>
	    Add new rule (type a normal search string and press Enter):<br/> <%= text_field_tag("search[query]", "", {:id => "query"}) %>&nbsp;
		<%= render("searches/example_search_link") %>
		<input type="hidden" name="ref" value="searches">
	<% end %>
	<%= render("searches/example_searches") %>
</div>

<%= index_table(Rule, @rules) %>